package day03.note;

public class txt8 {
    public static void main(String[] args) {
        int n=100;
        while (n<=999){
            int a=n/100%10;
            int b=n/10%10;
            int c=n/1%10;
            double r=Math.pow(a,3)+Math.pow(b,3)+Math.pow(c,3);
            if (r==n){
                System.out.println(n);
            }
            n++;
        }








    }
}
